﻿//-----------------------------------------------------------------------
// <copyright file="ProblemCredentials.cs" company="Numbrella foundation">
// Copyright (c) Numbrella foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Numbrella.Interaction
{
    using System;
    using System.Runtime.Serialization;

    /// <summary>
    /// Contains information about problem seeder.
    /// </summary>
    [DataContract]
    public class ProblemCredentials
    {        
        /// <summary>
        /// Initializes a new instance of the <see cref="ProblemCredentials"/> class.
        /// </summary>
        /// <param name="address">Address of the problem solving service.</param>
        public ProblemCredentials(Uri address)
        {
            if (address == null)
                throw new ArgumentNullException("address");

            this.Address = address;
        }

        /// <summary>
        /// Gets address of the problem solving service.
        /// </summary>
        [DataMember]
        public Uri Address { get; private set; }
    }
}
